/*

Author   : chaos

FileName : rec_mul.cpp

Date     : 09/08/17 21:16:57

*/
#include <iostream>
using namespace std;

int recursion_mul(int up_value);

int main(int argc ,char *argv[])
{

    for (int i = 1; i < 10; i++) {
        cout << i << "! = " << recursion_mul(i) << endl;
    }
    return 0;
}

int recursion_mul(int up_value)
{
    if(up_value > 1)
        return (up_value * recursion_mul(up_value-1));
    else
        return 1;
}
